| Conditions | 2 |
| Total Lines | 13 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import OS from '../client/OS' |
||
| 26 | uninstall = async (): Promise<boolean> => { |
||
| 27 | if (!(await this.isInstalled())) { |
||
| 28 | error(`${this.name} is not installed.`) |
||
| 29 | return false |
||
| 30 | } |
||
| 31 | |||
| 32 | info(`Uninstalling ${this.name}...`) |
||
| 33 | |||
| 34 | await OS.getInstance().packageManager.uninstall(this.alias, false) |
||
| 35 | |||
| 36 | success(`Uninstalled ${this.name}.`) |
||
| 37 | |||
| 38 | return true |
||
| 39 | } |
||
| 51 |